package com.t371.spring.dao.impl;

import com.t371.spring.dao.PetDao;
import com.t371.spring.entity.Pet;

public class PetDaoImpl implements PetDao {

    @Override
    public int add(Pet pet) {
        System.out.println("新增Pet，Pet的id是："+pet.getId());
        return 1;
    }

    @Override
    public Pet get(int id) {
        System.out.println("查询Pet，Pet的id是："+id);
        return new Pet(id,"name"+id,1);
    }

    @Override
    public int insert(Pet pet) {
        return 0;
    }
}
